package com.yvdedu.hospital.service;

import java.util.List;

import org.springframework.stereotype.Service;

import com.yvdedu.hospital.entity.Department;
import com.yvdedu.hospital.entity.Drug;
import com.yvdedu.hospital.entity.Outpatient;
import com.yvdedu.hospital.entity.Prccs;
import com.yvdedu.hospital.entity.Presc;
import com.yvdedu.hospital.entity.Prescription;
import com.yvdedu.hospital.entity.Project;
import com.yvdedu.hospital.entity.Record;
import com.yvdedu.hospital.entity.User;
import com.yvdedu.hospital.entity.tool.OutpatientTool;
import com.yvdedu.hospital.entity.tool.PrccsTool;
import com.yvdedu.hospital.entity.tool.PrescTool;


@Service
public interface RegistrationService {
	
	
	public List<Outpatient> outpatientquery();
	
//	添加门诊
	public void outpatientadd( Outpatient outpatient );

	//查询科室
	public List<Department> departmentquery();
	
	//根据科室查询医生
	public List<User> userquery(int dep_id);
	
	//查询病例表
	public List<Outpatient> searchoutpatient(String name);
	
	
	//查询项目
	public List<Project> projectquery();
	
	//药品搜索添加
	public List<Drug> drugSerch(String name ,int pageNumber);
	
	//项目搜索添加
	public List<Project> projectSerch(String name);
	
	//挂号为就诊查询
	public List<Outpatient> outpatientque(String deal);
	
	//门诊处方插入
	public void prescriptionadd(Prescription prescription);
	//门诊处方关联药物插入
	public void prescadd(Presc presc);
	//门诊处方关联检查项目插入
	public void prccsadd(Prccs prccs);
	//挂号就诊后改就诊情况
	public void outpatientedit(Outpatient outpatient);
	//药品的数量跟新
	public void drugedit(Drug drug);
	//病例为否的查询
	public List<OutpatientTool> outpatientcases(String cases);
	//病例添加
	void recordadd(Record record);
	//病例添加后改挂号表的病例判断相
	void casesedit(Outpatient outpatient);
	//病例下面药品查询
	List<PrescTool> serch(int p_id,int pageNumber);
	//病例下面药品查询
	List<PrccsTool> serch1(int p_id, int pageNumber);
	//病例作废
	void intdeit(int id);
	void intdeit1(int id);
	void intdeit2(int id);
	void intdeit3(int id);
}
